<template>
<div>
<h1>Window Demo</h1>
  <Window
  ButtonType="success"
  confirmButtonText='确定'
  textContent="彈窗文字内容"
  type='confirm'
  @successCallback='successCallback($event,1)'
  @cancelCallback ='cancelCallback($event,1)'
      />
</div>
</template>

<script>
import Window from '../components/Window.vue'
export default {
  data () {
    return {

    }
  },
  methods: {
    successCallback (e, a) {
      console.log(e)
      console.log(a)
    },
    cancelCallback (e, a) {
      console.log(e)
      console.log(a)
    }
  },
  components: {
    Window
  }
}
</script>

<style>

</style>
